package com.emotion.recognition.shared;

import java.io.Serializable;

import com.google.common.base.Objects;

public class MLPConfig implements Serializable {
    private static final long serialVersionUID = 1L;

    public int hiddenLayerNodes;
    public double learningRate;
    public double momentumRate;
    public double desiredMaxError;
    public int maxEpochs;

    public MLPConfig() {
        hiddenLayerNodes = 4;
        learningRate = 0.02;
        momentumRate = 0.9;
        desiredMaxError = 0.20;
        maxEpochs = 1000;
    }

    @Override
    public String toString() {
        return Objects.toStringHelper(this).add("hidden layer nodes", hiddenLayerNodes)
                .add("learning rate", learningRate).add("momentum", momentumRate)
                .add("max error", desiredMaxError).add("max epochs", maxEpochs).toString();
    }
}
